[PATCH] [llvm-objcopy] [COFF] Consider section flags when adding section
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Wed, 25 Aug 2021 20:03:32 +0000 (23:03 +0300)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Jul 2023 20:16:10 +0000 (21:16 +0100)
commitbe0a326edd2fd8decd296c7fa65198119826c281
treee13fd7c04dc833d69ba70e7cc09dd13b950b1185
parent0685ee473d03a1d0de7c08ed06d747363cbf5b1a
[PATCH] [llvm-objcopy] [COFF] Consider section flags when adding section

The --set-section-flags option was being ignored when adding a new
section. Take it into account if present.

Fixes https://llvm.org/PR51244

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D106942

Gbp-Pq: Name llvm-objcopy-COFF-Consider-section-flags-when-adding.patch
llvm/test/tools/llvm-objcopy/COFF/add-section-and-set-flags.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp